package com.demo2;

/**
 * Created by Administrator on 2017/3/25.
 */
public class XunHuan6 {
    public static void main(String[] args) {
        boolean b = true;
        System.out.println("循环1");
        for (int i = 0; b; i++) {
            if (i == 5)
                b = false;
            System.out.println("i=" + i);
        }
        int i = 0;
        b = true;
        System.out.println("循环2");
        for (; b; ) {
            System.out.println("i=" + i);
            if (i == 5)
                b = false;
            i++;
        }
        System.out.println("循环3");
        for (; ; ) {
        }
    }
}